package com.remindurself.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.remindurself.domain.TestTab;
import com.remindurself.mapper.TestTabMapper;

/** 
 * @author  Bruce 
 * @date 2011-7-31
 * @comment
 */
@Service
public class TestTabService {
	@Autowired
	private TestTabMapper testMapper;
	
	public List<TestTab> queryAll(){
		return testMapper.queryAll();
	}
	
	public TestTab getById(int id){
		return testMapper.getById(id);
	}
	
	public TestTab getByC1(String c1){
		return testMapper.getByC1(c1);
	}
	
	public TestTab getByC1AndC2(TestTab tab){
		return testMapper.getByC1AndC2(tab);
	}
	
	TestTab getByMapParam(Map<String,String> map){
		return testMapper.getByMapParam(map);
	}
	
	public void insertTestTab(TestTab tab){
		testMapper.insertTestTab(tab);
	}
	
	public void updateTestTab(TestTab tab){
		testMapper.updateTestTab(tab);
	}
	
	public void deleteById(int id){
		testMapper.deleteById(id);
	}
	
	public void deleteByC1AndC2(TestTab tab){
		testMapper.deleteByC1AndC2(tab);
	}
	
}
